package com.altio.swing.portlet.util;

import java.awt.Component;

public class Utils {

  public static boolean arrayContains(final Component[] components, final Component component) {
    boolean contains = false;
    for(int i = 0; i < components.length; i++) {
      if(components[i] == component) {
        contains = true;
        break;
      }
    }
    return contains;
  }
}
